Release 10.1A: OpenEdge Development:
Progress 4GL Reference


ENCRYPT-AUDIT-MAC-KEY( ) method

Encrypts and encodes the specified character expression and returns an encrypted character value that you can store for later use in message authentication code (MAC) operations.

Return type: CHARACTER

Applies to: AUDIT-POLICY system handle

Syntax
ENCRYPT-AUDIT-MAC-KEY( encrypt-key ) 

encrypt-key

A character expression containing the key to encrypt. Progress converts this key to UTF-8 before encrypting it and storing it, which ensures a consistent value regardless of code page settings.

Example

The following code fragment illustrates how to use the ENCRYPT-AUDIT-MAC-KEY( ) method:

DEF VAR val as CHAR. 
DEF VAR key as CHAR init “Open Sesame”. 
. 
. 
. 
val = AUDIT-POLICY:ENCRYPT-AUDIT-MAC-KEY(key). 
. 
. 
. 
_db-detail._db-mac-key = val. 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095